<!DOCTYPE html>
<html>
<head>
	<?php Sy::view('common/header'); ?>
	<title>设置</title>
	<style>
	.panel {
		margin-top: 20px;
	}
	.form-group {
		margin-bottom: 10px;
	}
	.clear {
		clear: both;
	}
	</style>
</head>
<body>
	<div id="wrapper" class="container">
		<div class="panel panel-default">
			<div class="panel-heading">填入基本信息</div>
			<div class="panel-body text-center">
				<div class="form-group row">
					<label for="bduss" class="col-sm-2 control-label">BDUSS</label>
					<div class="col-sm-10"><input id="bduss" type="text" class="form-control" value="<?=$bduss?>"></div>
				</div>
				<div class="form-group row">
					<label for="stoken" class="col-sm-2 control-label">STOKEN<br><small>仅关注的吧超过200个时需要</small></label>
					<div class="col-sm-10"><input id="stoken" type="text" class="form-control" value="<?=$stoken?>"></div>
				</div>
				<p><label><input id="morethan200" type="checkbox" <?=($morethan200==1?'checked':'')?>>&nbsp;我关注的吧超过200个</label></p>
				<p><button id="signSave" class="btn btn-primary">保存</button></p>
			</div>
		</div>
		<div class="panel panel-default">
			<div class="panel-heading">其他功能</div>
			<div class="panel-body text-center">
				<p><button id="cookieTest" class="btn btn-primary">测试已保存的Cookie有效性</button>&nbsp;<button id="signTest" class="btn btn-primary">尝试签到</button></p>
			</div>
		</div>
		<div class="panel panel-default">
			<div class="panel-heading">说明</div>
			<div class="panel-body">
				<p>1. 百度针对不同域名的STOKEN是不同的，无法通用。请填入tieba.baidu.com域下的STOKEN</p>
				<p>2. “尝试签到”仅作为测试所填写的信息是否有效，不会对所有贴吧进行签到。同时，已签到的贴吧均会提示为“失败”</p>
			</div>
		</div>
	</div>
	<script>window.saveUrl=window.location.href;window.testCookieUrl='<?=Sy::createUrl('setting/testCookie')?>';window.testSignUrl='<?=Sy::createUrl('setting/testSign')?>';</script>
	<?php Sy::view('common/footer'); ?>
</body>
</html>